<template>
  <div>
     <!-- 路由出口 -->
     <keep-alive include="find">
       <router-view></router-view>
     </keep-alive>
  

<!-- v-model="active" 绑定点击的是第几个下标  -->
  <van-tabbar v-model="active" placeholder active-color="purple" route>
  <van-tabbar-item to="/" icon="home-o">首页</van-tabbar-item>
  <van-tabbar-item to="/find" icon="search" >搜索</van-tabbar-item>
</van-tabbar>
  </div>
 
</template>

<script>
export default {
 data () {
    return {
      active: 0,
    }
  },
}
</script>

<style>

</style>